<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="css/index.css" type="text/css" rel="stylesheet"/>
    <title>首页</title>
</head>

<body>

<div class="box1"><h1>选课系统</h1>
    <%
        String userId = (String) request.getSession().getAttribute("user_id");
        if (userId != null) {
    %>
    <p>你好：<%= userId %></p>
    <%
    } else {
    %>
    <p>未登录或会话已过期</p>
    <p>请<a href="Landing_page.jsp">重新登录</a>。</p>
    <%
        }
    %>
</div>

<div class="box2">

    <div><iframe frameborder="0" name="left" scrolling="auto" width="190" height="590" src="left.jsp"></iframe></div>

    <div> <iframe frameborder="0" name="content" width="1300" height="590" scrolling="auto"></iframe></div>

</div>


<div class="foot"> <br />
    <p align="center">hunandazhong@湖南大众</p>
    <p align="center">地址：湖南大众传媒职业技术学院</p>
</div>
</body>
</html>